using DD;
using UnityEngine;

public class GameOverShowAdsOrSetupScorce : MonoBehaviour
{
    public bool isShowAds;
    public bool isSetupScorce;
    private void OnEnable()
    {
        if (isShowAds)
        {
            InitializeTopOn.Instance.showInterstitialAd();
        }

        if (isSetupScorce)
        {
            InitializeLeaderBroad.Instance.ReportScore(ScoreManager.Instance._bestScoreValue, "CgkIxvKm3JAMEAIQAA");
        }
    }

    public void OnOpenLeaderBroad()
    {
        InitializeLeaderBroad.Instance.showLeaderboard();
    }
}
